/*
 * @Author: zhangzhengzhe
 * @Date: 2019-09-19 14:19:40
 * @LastEditors: zhangzhengzhe
 * @LastEditTime: 2019-09-26 16:50:24
 */
import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export const createRouter = () => {
  return new Router({
    mode: 'history',
    routes: [
      {
        path: '/',
        name: 'home',
        component: () => import(/* webpackChunkName: "home" */ './../views/home.vue')
      }, {
        path: '/about',
        name: 'about',
        component: () => import(/* webpackChunkName: "about" */ './../views/About.vue')
      }
    ]
  })
}
